package com.woniu.client;

import com.woniu.client.impl.OrderClientImpl;
import com.woniu.config.FeignConfig;
import com.woniu.config.FeignLogConfiguration;
import com.woniu.outlet.po.OrderPo;
import com.woniu.uitl.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "erp-yan-order",qualifier = "orderClient",configuration = FeignConfig.class)
public interface OrderClient {
    //根据订单编号查询订单商品明细
    @GetMapping("/order/findOrderByOrderNo")
    @ApiOperation("查询订单及明细(根据订单编号)")
    public ResponseResult<List<OrderPo>> findOrderByOrderNo(@RequestParam("orderNo") String orderNo);

}
